package com.movie.ticket.sale.assembly.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author muzi
 * @since 2020-12-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_user_vip")
public class UserVip implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户和会员的中间表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 影院id
     */
    private Integer cinemaId;

    /**
     * 会员到期时间
     */
    private LocalDateTime vipEndData;

    /**
     * 会员状态1：会员 0：非会员
     */
    private Integer state;


}
